package org.sith.taskrunner.gwt.client.services.taskrunner;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.core.client.GWT;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: sith
 * Date: Oct 30, 2010
 * Time: 9:44:51 PM
 * To change this template use File | Settings | File Templates.
 */
@RemoteServiceRelativePath("TaskRunnerService")
public interface TaskRunnerService extends RemoteService {


    public Map<String,String> getActivatedTasks();

    /**
     * Utility/Convenience class.
     * Use TaskRunnerService.App.getInstance() to access static instance of TaskRunnerServiceAsync
     */
    public static class App {
        private static final TaskRunnerServiceAsync ourInstance = (TaskRunnerServiceAsync) GWT.create(TaskRunnerService.class);

        public static TaskRunnerServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
